using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.DirectX.Direct3D;

namespace Noein
{
    class Object2 : Object
    {
        private Mesh mesh;
        private Material material;

        public Object2(Mesh mesh, Material mat)
            : base(null)
        {
            this.mesh = mesh;
            this.material = mat;
        }

        public override void Render(Device device)
        {
            device.Transform.World = Spatial.Transform;
            device.Material = material;
            mesh.DrawSubset(0);
        }
    }
}
